package com.review.reviewsb.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @program: reviewSb
 * @description: session监听器
 * @author: YaoZhiLi
 * @create: 2021-07-04 17:10
 */
@WebListener
public class CustomSessionListener implements HttpSessionListener {
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("session启动");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("session关闭");
    }
}